package com.syh.bishe.service.impl;

import com.syh.bishe.pojo.BjData;
import com.syh.bishe.mapper.BjDataMapper;
import com.syh.bishe.pojo.Pie;
import com.syh.bishe.service.IBjDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author syh
 * @since 2024-07-01
 */
@Service
@RequiredArgsConstructor
public class BjDataServiceImpl extends ServiceImpl<BjDataMapper, BjData> implements IBjDataService {
    private final BjDataMapper bjDataMapper;
    @Override
    public List<BjData> getData() {
        List<BjData> list = bjDataMapper.select();
        return list;
    }

    @Override
    public List<Pie> getPie() {
        List<Pie> pie= bjDataMapper.getPie();
        return pie;
    }
}
